package msgDisplayBean;

/**
 *
 * @author Sam
 */
public class LoginState {
    private String styleForLoginButton;
    private String styleForLogoutButton;
    
    public LoginState() {}
    
    public String getStyleForLoginButton() {
        return this.styleForLoginButton;
    }
    
    public void setStyleForLoginButton(boolean alreadyLogin) {
        if (alreadyLogin) {
            styleForLoginButton = "none";
        }
        else {
            styleForLoginButton = "block";
        }
    }
    
    public String getStyleForLogoutButton() {
        return this.styleForLogoutButton;
    }
    
    public void setStyleForLogoutButton(boolean alreadyLogin) {
        if (alreadyLogin) {
            styleForLogoutButton = "block";
        }
        else {
            styleForLogoutButton = "none";
        }
    }
}
